<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/modules/checkA.php");
include_once("../../../../config.php");
include_once("../controller/detail-add.php");
?>





<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="../css/<? echo $theme_folder ?>/user.css" rel="stylesheet" type="text/css"/>
    <?php include ROOT_PATH_.'/controller/common/modules/head.php'; ?>
    <?php include 'modules/head.php'; ?>
</head>






<body>

<div id="topbar">     <?php include ROOT_PATH_.'/controller/common/modules/topbar.php'; ?> </div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/modules/sidebar.php'; ?>
        </div>







        <div id="content">




<div class="detail-box  layui-form">
    <?php $page_title = '人员资料'; ?>
    <?php include ROOT_PATH_ . '/controlbase/module/mod-page-title.php'; ?>




<form id="add-form" method="post" action="../controller/detail-add-function.php" enctype="multipart/form-data" class="layui-form">


    <fieldset class="layui-elem-field layui-field-title">
        <legend> 基本资料</legend>
    </fieldset>

  <div class="layui-form-item">
    <label class="layui-form-label">姓名<span>*</span></label>
    <div class="layui-input-block">
      <input type="text" name="ai_name" lay-verify="required" placeholder="请输入名字" autocomplete="off" class="layui-input">
    </div>
  </div>


  <div class="layui-form-item">
    <label class="layui-form-label">微信</label>
    <div class="layui-input-block">
      <input type="text" name="ai_weixin"   autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">邮箱</label>
    <div class="layui-input-block">
      <input type="text" name="ai_email"   autocomplete="off" class="layui-input">
    </div>
  </div>









    <div class="layui-form-item">
        <label class="layui-form-label">所属单位</label>
        <div class="layui-input-block">
            <select name="ai_unitnid" lay-search="" >
                <option value="">无</option>
                <? for($i=0;$i<count($unit_list);$i++){ ?>
                    <option value="<? echo $unit_list[$i]['nid'] ?>"><? echo $unit_list[$i]['nid'] ?> : <? echo $unit_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>






<div class="layui-form-item">
<label class="layui-form-label">标签</label>

<div class="layui-input-block" >
<? foreach ($tag_array as $k => $v){?>
    <input type="checkbox" name="ai_tag[]"  value="<?echo $v?>"     title="<?echo $v?>" >
<?;}?>
    <div class="notice">标签可以在<a href="plate-edit.php?sys_part=member">【板块设置】</a>中设置</div>
</div>
</div>














        <div class="layui-form-item">
    <label class="layui-form-label">性别</label>


	  <div class="layui-input-block">

      <input type="radio" name="ai_gender" value="男" title="男" >
      <input type="radio" name="ai_gender" value="女" title="女" >
      <input type="radio" name="ai_gender" value="未知" title="未知" >
    </div>



  </div>





   <div class="layui-form-item">
    <label class="layui-form-label">电话 </label>
    <div class="layui-input-block">
      <input type="text" name="ai_phone" placeholder="请输入电话"  autocomplete="off" class="layui-input" >
    </div>
  </div>






        <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">备注</label>
    <div class="layui-input-block">
      <textarea name="ai_remark" placeholder="备注" class="layui-textarea"></textarea>
    </div>
  </div>




    <fieldset class="layui-elem-field layui-field-title">
        <legend>跟踪设置</legend>
    </fieldset>



    <div class="layui-form-item">
        <label class="layui-form-label">跟进负责人</label>
        <div class="layui-input-block">
            <select name="ai_agentnid" lay-search="" >
                <option value="<? echo $data['member']['agentnid']?>"><? echo $now_employee['name']?></option>
                <option value="">无</option>
                <? for($i=0;$i<count($employee_list);$i++){ ?>
                    <option value="<? echo $employee_list[$i]['nid'] ?>"><? echo $employee_list[$i]['nid'] ?> : <? echo $employee_list[$i]['name'] ?></option>
                <? } ?>
            </select>
        </div>
    </div>





    <div class="layui-form-item">
        <label class="layui-form-label">评级</label>
        <div class="layui-input-block" >
            <? foreach ($rank_array as $k => $v){?>
                <input type="checkbox" name="ai_tag[]"  value="<?echo $v?>"     title="<?echo $v?>"
                    <? if(in_array($v,$now_member_tag_array))   {echo "checked";} ?>>
                <?;}?>

            <div class="notice">评级可以在<a href="plate-edit.php?sys_part=member">【板块设置】</a>中设置</div>
        </div>

    </div>






    <div class="layui-form-item">
        <label class="layui-form-label">跟踪节点</label>
        <div class="layui-input-block">
            <input type="text" name="ai_checkpoint" id="date" autocomplete="off" class="layui-input"
                   value="<? echo date("Y-m-d m:i:s")?>"
                   onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon">

            <div class="notice">设置下次跟踪日期。跟踪周期会根据此日期进行设置</div>

        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">跟踪周期</label>

        <div class="layui-input-block" >
            <input type="radio" name="ai_period"  value="无限制"    title="无限制"   checked >
            <input type="radio" name="ai_period"  value="每日"    title="每日"   >
            <input type="radio" name="ai_period"  value="每周"    title="每周"   >
            <input type="radio" name="ai_period"  value="每月"    title="每月"   >
            <input type="radio" name="ai_period"  value="每年"    title="每年"   >
            <div class="notice">根据设置的checkpoint 来到判断循环周期。每日的话就自动更新加一，每周则加7日，每月则下一个月的今天，每年则+1年</div>

        </div>

    </div>




<br/>









    <div class="function">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>





        </div>



<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>








<?php include_once('../module/footer.php'); ?>
</body>
</html>
